home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •Interesting Stuff• / Fortune Cookie •••• / FortuneInfo < prev   
Text File  |  1987-02-19  |  3KB  |  58 lines

  1.  
  2. "Fortune"  (c) by David Fry, October 9, 1986
  3.  
  4. Fortune is a spinoff of the fortune game/utility on Unix machines.  It 
  5. displays a randomly selected saying in a window.  These sayings are
  6. stored in a resource file called "Cookies".
  7.  
  8. Cookies contains 'STR#' resources numbered 1, 2, 3,... upto the maximum
  9. number of cookies.  The Cookies file distributed with this posting has
  10. only 46 cookies, but you are welcome and encouraged to edit and add
  11. to these.  You can even have several files, however the program
  12. will only access the one named Cookies.  Just rename the others to
  13. reflect their content, like "Philosophic Cookies".
  14.  
  15. I want to write a supplementary program called Cookie Editor for
  16. changing and testing the sayings but I just don't have the time now.
  17. I didn't want to holdup the rest of the program anymore, so for now 
  18. you'll have to use ResEdit.  Be sure to number cookies successively; if 
  19. you want to add you own saying to this file, add a new 'STR#' resource 
  20. and change its ID to 47 (in this case) with the "Get Info" option.
  21.  
  22. When the program runs, a code of the form "N/M" appears in the
  23. left-hand side of the menu bar, where N and M are whole numbers.  N
  24. is the resource ID of the saying that is displayed, and M is the
  25. total number of sayings in the Cookies file.  These figures should
  26. be useful for editing the file.  If cookie #12, say, is offensive, get out 
  27. ResEdit and delete it.  Then be sure to change cookie #M to #12 so that
  28. the numbers remain successive.
  29.  
  30. The saying will stay on the window until you click the mouse, where upon
  31. a new saying is displayed. If insteaded of clicking, you hit a key or 
  32. allow a certain amount of time to pass (determined by the length of the
  33. cookie but usually about 5-6 seconds) the Mac returns to the Finder.
  34.  
  35. To keep the program simple there is no error checking other than verifying
  36. that the Cookies file actually exists.  If it can't be found you'll be
  37. informed, but if you mess up the numbering order of the 'STR#' resources
  38. there is no guarantee that you'll still see a message. NOTE TO HFS USERS:
  39. The Fortune application can be anywhere on your volume, but place the
  40. Cookies file in your System Folder.
  41.  
  42. I hope you get a chuckle out of this program.  I think it's especially
  43. fun for hard disk users.  If you find any good Cookies I'd appreciate
  44. it if you'd send them my way.
  45.  
  46. David Fry
  47. Department of Mathematics
  48. Harvard University
  49. 1 Oxford Street
  50. Cambridge, MA  02138
  51.  
  52. GEnie:      D.FRY
  53. CompuServe:    73317,1265
  54. UUCP:          ...!harvard!huma1!fry
  55. BITNET:      fry@harvma1.BITNET or fry%huma1@harvsc4.BITNET
  56. ARPA:       fry@huma1.harvard.EDU
  57.  
  58.